//
//  BaseTextField.m
//  江淮卡友
//
//  Created by 杜文杰 on 2021/1/27.
//

#import "BaseTextField.h"
@interface BaseTextField()<UITextFieldDelegate>

@end

@implementation BaseTextField

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.font = FONT_Regular(15);
        // 键盘下面文字类别
        /**UIReturnKeyGo,//去往  UIReturnKeyGoogle,  UIReturnKeyJoin,//加入bai     UIReturnKeyNext,//下一步   UIReturnKeyRoute,
        UIReturnKeySearch,//搜索du      UIReturnKeySend,//发送   UIReturnKeyYahoo,   UIReturnKeyDone,//完成*/
        self.returnKeyType = UIReturnKeyDone;
        self.delegate = self;
        // 光标颜色
//        self.tintColor = UIColorFromHex(0x1DC0AF, 1);
    }
    return self;
}

// 点击下面完成按钮  收起键盘
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [self resignFirstResponder];
    return YES;
}
@end
